package com.nuoniu.sibanyun.service.erp.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.nuoniu.sibanyun.entity.erp.ErpCurrencyAccount;
import com.nuoniu.sibanyun.mapper.erp.ErpCurrencyAccountMapper;
import com.nuoniu.sibanyun.service.erp.IErpCurrencyAccountService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 币种记账详情 服务实现类
 * </p>
 *
 * @author baiqiang
 * @since 2020-10-13
 */
@Service
public class ErpCurrencyAccountServiceImpl extends ServiceImpl<ErpCurrencyAccountMapper, ErpCurrencyAccount> implements IErpCurrencyAccountService {

    @Override
    public Page<ErpCurrencyAccount> pageList(Page pages, ErpCurrencyAccount currencyAccount) {
        QueryWrapper<ErpCurrencyAccount> queryWrapper = new QueryWrapper<>(currencyAccount);
        queryWrapper.eq("currency_id", currencyAccount.getCurrencyId());
        Page page = page(pages, queryWrapper);
        return page;
    }
}
